/**
 * KLineDto
 */
class KLineDto {
  /**
   * constructor
   * @param {Array} items
   */
  constructor(items) {
    this.KLine = new Array();

    items.forEach((item, index) => {
      this.KLine.push({
        Date: item.TimePoint,
        Open: item.Open,
        Close: item.Close,
        High: item.High,
        Low: item.Low,
        Volume: item.Volume,
      });
    });
  }
}

module.exports = KLineDto;
